package mysql

import "gorm.io/gorm"

type Shang struct {
	gorm.Model
	Title   string  `gorm:"type:varchar(30);not null"`
	Image   string  `gorm:"type:varchar(500);not null"`
	Price   float64 `gorm:"type:decimal(10,2);not null"`
	ClassId int     `gorm:"type:int;not null"`
}

type Class struct {
	gorm.Model
	ClassName string `gorm:"type:varchar(30);not null"`
}
